<template>
    <div :class="mode">文字</div>
</template>

<script lang="ts" setup>
import { useMode } from "@/hooks/useMode";
const { mode } = useMode();
</script>

<style>
.dark {
    color: red;
}
.light {
    color: #0000ff;
}
</style>
